﻿using System;
using System.Web;
using Ue.Framework.Web;
using Ue.Infrastructure.Web.AsyncHandlers;
using Ue.Qcdz.Domain.ShopArticle;
namespace Ue.Qcdz.UI.Controller
{
    public class ShopNewsController : AsyncResult
    {

        public string key = string.Empty;
        public ShopNewsController(AsyncCallback callback, HttpContext context, object state)
            : base(callback, context, state)
        {
            key = context.Request.GetQueryValue<string>("Id");
        }
        public string Delete(Guid key)
        {
            ShopNews model = ShopNewsService.GetShopNews(key);
            ShopNewsService.RemoveShopNews(model);
            return "ok";
        }
    }
}
